package com.duguyuan.utils;

/**
 * 消息协议
 */
public interface MessageProtocol {

    int PROTOCOL_LENGTH = 4;

    String REGISTER_ROUND = "【注册】";
    String LOGIN_ROUND = "【登录】";
    String PRIVATE_ROUND = "【私聊】";
    String PUBLIC_ROUND = "【群聊】";

    String ADD_USER = "【上线】";
    String DELETE_USER = "【下线】";
    String SYN_USER = "【同步】";

    String SEPARATOR = "【&】";

    String LOGIN_SUCCESS = "登录成功";
    String LOGIN_ERROR = "用户名或密码错误";
    String LOGIN_ONLINE = "用户已在线";
    String REGISTER_SUCCESS = "注册成功";
    String REGISTER_ERROR = "用户名已存在, 注册失败";

    String DEFAULT_SERVER_IP_ADDRESS = "127.0.0.1";
    int DEFAULT_SERVER_PORT = 30000;

}
